import jieba

# s = "file:///F:/资料库/NLP基础学习/投满分案例/01-课件/Chapter3"
# print(list(jieba.cut(s)))
#
# print(jieba.lcut(s))


# 定义路径模板
# path_template = "resources/bert/models/model_bert_{}.pkl"
#
# # 替换为日期字符串
# date_str = "20250902"
# path = path_template.format(date_str)
# print(path)  # 输出：resources/bert/models/model_bert_20250902.pkl


path_template = "resources/bert/models/model_bert_20250902.pkl"
# 也可以直接替换为其他字符串（如版本号）
version_str = "v2_best"
path = path_template.format(version_str)
print(path)  # 输出：resources/bert/models/model_bert_v2_best.pkl